<?php
include('../data/comm.inc.php');
include('../data/uservar.php');
include('../func/func.php');
include('../func/csfunc.php');

include('../func/userfunc.php');
include('../include.php');
include('./checklogin.php');

switch($_REQUEST['xtype']){
   case "show":
		  $tpl->display("kj.html");
   break;
   case "kjnow":
       $tpl->assign("thisqishu",$thisqishu);
	   $tpl->assign("thisyear",$thisyear);
	   $msql->query("select * from `$tb_kj` where year='$thisyear' and qishu='$thisqishu'");
	   $msql->next_record();
	   $tpl->assign("p1",$msql->f('p1'));
	   $tpl->assign("p2",$msql->f('p2'));
	   $tpl->assign("p3",$msql->f('p3'));
	   $tpl->assign("p4",$msql->f('p4'));
	   $tpl->assign("p5",$msql->f('p5'));
	   $tpl->assign("p6",$msql->f('p6'));
	   $tpl->assign("tm",$msql->f('tm'));
       $tpl->display("kjnow.html");
   break;
}
?>